/**
 * Copyright (C) T-Systems International, 2013-2014
 *
 * The copyright of the computer program herein is the property of
 * T-Systems International. The program may be used and/or copied
 * only with the written permission of T-Systems International or in
 * accordance with the terms and conditions stipulated in the
 * agreement/contract under which the program has been supplied.
 *
 * $Author$
 * $Date$
 * $Rev$
 */
package com.tsystems.migdb.batch;

import com.tsystems.migdb.batch.utils.MigdbToStringBuilder;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@AllArgsConstructor
@NoArgsConstructor
public class Person {

    @Getter @Setter
    private String firstName;

    @Getter @Setter
    @Length(min = 1, max = 20, message = "LENGTH_INVALID")
    private String lastName;

    @Override
    public String toString() {
        return MigdbToStringBuilder.toString(this);
    }

}